package com.loukou.lkt.lkt.enums;

public enum GoodsStockLogPositionStockStateEnum {
	STATE_Normal( 0, "正常库存" ),
	
	STATE_AllocationStay( 1, "待出库" ),
	
	STATE_AllocationOn( 2, "在途" );
	
	private int id;
	private String name;
	private GoodsStockLogPositionStockStateEnum(int id, String name) {
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static GoodsStockLogPositionStockStateEnum parsePositionTypeEnum(int id) {
		for (GoodsStockLogPositionStockStateEnum typeEnum : GoodsStockLogPositionStockStateEnum.values()) {
			if(typeEnum.id == id){
				return typeEnum;
			}
		}
		return STATE_Normal;
	}
}
